From 190394c52598a5599f29cff3a1b9e4e47a06c65f Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 18 Aug 2003 18:09:01 +0000 Subject: [PATCH] Fix crash when no descr available. --- mapsource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapsource.c b/mapsource.c index 6b4a9b08f..5ebc91894 100644 --- a/mapsource.c +++ b/mapsource.c @@ -257,7 +257,7 @@ mps_waypt_pr(const waypoint *wpt) icon = mps_find_icon_number_from_desc(wpt->icon_descr, MAPSOURCE); - if (get_cache_icon(wpt) && (strcmp(wpt->icon_descr, "Geocache Found") != 0)) { + if (get_cache_icon(wpt) && wpt->icon_descr && (strcmp(wpt->icon_descr, "Geocache Found") != 0)) { icon = mps_find_icon_number_from_desc(get_cache_icon(wpt), MAPSOURCE); } -- 2.30.2